<ui:composition xmlns="http://www.w3.org/1999/xhtml"
				xmlns:h="http://java.sun.com/jsf/html"
				xmlns:f="http://java.sun.com/jsf/core"
				xmlns:ui="http://java.sun.com/jsf/facelets"
				xmlns:c="http://java.sun.com/jstl/core"
				xmlns:fn="http://java.sun.com/jsp/jstl/functions">
      <h:form>
          <div style="text-align:right;">
              <div style="float:left;">
                  <h:commandButton immediate="true" action="#{vaccinationCrud.createSetup}" value="#{msg.lblAddNew}" id="button1" />

				<!-- Paging -->	
				<ui:include src="/snippets/paging.xhtml">
				     <ui:param name="currentCrud" value="#{vaccinationCrud}"/>
				</ui:include>
              </div>
          </div>
          
		<!-- Search Widget -->	
		<ui:include src="/search/searchBox.xhtml">
		     <ui:param name="crud" value="#{vaccinationCrud}"/>
		</ui:include>                
          
          <div style="overflow:auto;">
              <h:outputText escape="false" value="(No Vaccination Items Found)" rendered="#{fn:length(vaccinationCrud.pagedItems) == 0}" />
		    
		    <h:panelGroup rendered="#{fn:length(vaccinationCrud.pagedItems) > 0}">
		        <h:dataTable value="#{vaccinationCrud.pagedItems}" var="item" 
		        	columnClasses="center,width3" width="100%" cellspacing="0" cellpadding="0"  >
                       <h:column>
                           <f:facet name="header">
                               <h:outputText value="Child Id:"/>
                           </f:facet>
                           <h:outputText value="#{item.child.extId}"/>
                       </h:column>
                       <h:column>
                           <f:facet name="header">
                               <h:outputText escape="false" value=""/>
                           </f:facet>
                           <h:outputLink value="#{request.contextPath}/amendment/vaccination/details/#{item.uuid}">
                           		<h:graphicImage style="border: 0;" title="details" value="/resources/icons/details.ico" />
                           </h:outputLink>
                           <h:outputText value=" "/>
                           <h:commandLink id="vaccinationEdit" action="#{vaccinationCrud.editSetup}" >
                           		<f:param name="itemId" value="#{item.uuid}" />
                           		<h:graphicImage title="edit" style="border: 0;" value="/resources/icons/edit.ico"/>
                           </h:commandLink>
                           <h:outputText value=" "/>
		                	<h:commandLink  action="#{vaccinationCrud.delete}">
		                    	<h:graphicImage title="delete" style="border: 0;" value="/resources/icons/delete.ico"/>
		                    	<f:param name="itemId" value="#{item.uuid}"/>
		                	</h:commandLink>
                       </h:column>
                   </h:dataTable>
               </h:panelGroup>
          </div>
      </h:form>
  </ui:composition>